﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using IOBusiness;
using IOEntity;
public partial class SiteMaster : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["AdminID"] == null || Session["AdminID"].ToString() == "")
        {
            Response.Redirect("~/Admin/Login/Login.aspx");
        }
        else
        {
            clsBSAdmin obj = new clsBSAdmin();
            clsAdmin clss = new clsAdmin();
            clss = obj.GetById(Convert.ToInt32(Session["AdminID"]));
            lblMessage.Visible = true;
            lblMessage.Text = "Xin chào: " + clss.Ten + " - <a href=\"Login\\Logout.aspx\">Logout</a>";
        }
        //this.MenuMain.LoadContentFile("~/Admin/File/menu_vn.xml");
        //this.MenuMain.DataBind();
        if (!Page.IsPostBack)
        {
            Session["Status"] = null;
        }
    }

   
}
